local state = {}

function state.new(cxx, cyy, w, h, r, g, a)
  if not cxx or not cyy or not w or not h or not r then error('cxx, cyy, w, h, r cannot be nil') end
  return {cx=cxx, cy=cyy, width=w, height=h, rotation=r, graphics=g, audio=a}
end

return state
